const mongoose = require('mongoose');
const mongoosePageinate = require('mongoose-paginate')
var   schema            = new mongoose.Schema({
    userId     : mongoose.Schema.ObjectId,   //用户id
    img        : String,                     //产品图片
    productName: String,                     //产品名称
    price      : Number,                     //单价
    amount     : Number,                     //数量
})
schema.plugin(mongoosePageinate);
module.exports = mongoose.model('Cart', schema,'cart');